package com.irdstudio.efp.esb.service.mock.hj;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import com.irdstudio.efp.esb.service.bo.req.hj.ReqCustomerLoanQueryBean;
import com.irdstudio.efp.esb.service.bo.resp.hj.RespCustomerLoanQueryBean;
import com.irdstudio.efp.esb.service.client.ESBClientFactory;
import com.irdstudio.efp.esb.service.facade.hj.CustomerLoanQueryService;

/**
 * 互金客户贷款信息查询
 * 
 * @author liyakui
 * @since 2018年12月20日 下午6:00:38
 * @version 1.0
 */
@Service("customerLoanQueryService")
public class CustomerLoanQueryServiceImpl implements CustomerLoanQueryService {

	Logger logger = LoggerFactory.getLogger(CustomerLoanQueryServiceImpl.class);

	/**
	 * @description:互金客户贷款信息查询处理方法
	 * @param reqCustomerLoanQueryBean
	 * @return
	 * @date:2018年12月21日 下午3:56:50
	 * @author:wangyk3
	 */
	@Override
	public RespCustomerLoanQueryBean customerLoanQuery(ReqCustomerLoanQueryBean reqCustomerLoanQueryBean) {
		// 返回对象
//		RespCustomerLoanQueryBean respCustomerLoanQueryBean = null;
//		logger.info("根据客户号：" + reqCustomerLoanQueryBean.getClientNo() + "查询客户贷款信息交易开始");
//		try {
//			// 1.调用ESB客户端服务
//			respCustomerLoanQueryBean = ESBClientFactory.buildClient().withBody(reqCustomerLoanQueryBean)
//					.withTradeNo("").create().sendAndReceive().getBody(RespCustomerLoanQueryBean.class);
//		} catch (Exception e) {
//			logger.info("客户贷款信息查询接口调用失败，错误信息为："+e.getMessage());
//		}
//		logger.info("根据客户号：" + reqCustomerLoanQueryBean.getClientNo() + "查询客户贷款信息交易结束");
		return new RespCustomerLoanQueryBean();
	}

}
